package com.wsk.bean;

import javax.persistence.*;

@Entity(name="userlevel")
public class UserLevel {
	@Id
	private Integer id;
	
	@Column(nullable=false,columnDefinition="double default 0.00")
	private double level;
	
	@OneToOne
	@PrimaryKeyJoinColumn
	private UserInformation userInformation;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public double getLevel() {
		return level;
	}

	public void setLevel(double level) {
		this.level = level;
	}

	public UserInformation getUserInformation() {
		return userInformation;
	}

	public void setUserInformation(UserInformation userInformation) {
		this.userInformation = userInformation;
	}
}
